package com.by.component.contract.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.by.component.contract.ContractSignRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.by.component.contract.dto.ContractSignRecord4DeliverSDTO;
import com.by.component.contract.dto.ContractSignRecord4PageSDTO;
import com.by.component.contract.dto.ContractSignRecordInfoSDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 合同签署记录(ContractSignRecord)表数据库访问层
 *
 * @author hanrongjun
 * @since 2024-03-19 14:48:08
 */
public interface ContractSignRecordMapper extends BaseMapper<ContractSignRecord> {

    List<ContractSignRecord4DeliverSDTO> queryContractSignRecord4Deliver(@Param("userId") Long userId);

    Page<ContractSignRecord4PageSDTO> queryPage(@Param("page") Page<ContractSignRecord4PageSDTO> page, @Param("condition") ContractSignRecord4PageSDTO condition);

    ContractSignRecordInfoSDTO info(@Param("userId") Long userId, @Param("contractInfoId") Long contractInfoId, @Param("sceneType") Integer sceneType, @Param("sceneId") Long sceneId);


    ContractSignRecordInfoSDTO contractSignInfo(@Param("contractSignRecordId") Long contractSignRecordId);
}
